using System;
using System.IO;
using System.Linq;
using System.Reflection;

public class DependencyLoader : MarshalByRefObject
{
    static readonly string[] dependenciesFileNames = new string[]
        {
            "Mono.Cecil.dll",
            "Mono.Cecil.Mdb.dll",
            "Mono.Cecil.Pdb.dll",
            "Mono.Cecil.Rocks.dll"
        };

    public BuildLogger Logger;

    public bool LoadDependencies(string dependenciesPath)
    {
        foreach (var fileName in dependenciesFileNames)
        {
            var path = Path.Combine(dependenciesPath, fileName);
            Assembly.LoadFrom(path);
        }

        return true;
    }
}